export default {
    data: {
        title: "",
    },
    props:{
        menuData:{
            default:[{"imgsrc":"common/icon/ic_public_message.png","title":"微信",imgsrcActive:"common/icon/ic_public_message_filled.png"},
                     {"imgsrc":"common/icon/ic_contacts.png","title":"通讯录",imgsrcActive:"common/icon/ic_contacts_filled.png"},
                     {"imgsrc":"common/icon/ic_search.png","title":"发现",imgsrcActive:"common/icon/ic_search_filled.png"},
                     {"imgsrc":"common/icon/ic_public_contacts.png","title":"我",imgsrcActive:"common/icon/ic_public_contacts_filled.png"}],
        },
        defaultIndex:{default:0}
    },
    changeMenu(id){
        this.$emit("changeMenu",{index:id});
        this.defaultIndex=id;
    },
}
